package cn.yqx.bankshop.user.service.impl;

import cn.yqx.bankshop.model.SysRole;
import cn.yqx.bankshop.user.dao.SysUserRoleMapper;
import cn.yqx.bankshop.user.service.RoleUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RoleUserServiceImpl implements RoleUserService {
    @Autowired
    SysUserRoleMapper sysUserRoleMapper ;
    @Override
    public List<SysRole> findRolesByUserId(Long userId) {
        return sysUserRoleMapper.findRolesByUserId(userId);
    }
}
